package charatr04.example;
class Animal3{
    void shout()
    {
        System.out.println("动物发出的叫声");
    }
}
class Dog3 extends Animal3{
    void shout()
    {
        System.out.println("汪汪汪。。。。");
    }
}
public class Example03 {
    public static void main(String[] args) {
        Dog3 dog = new Dog3();
        dog.shout();
    }
}

